<?php
/**
 * Created by PhpStorm.
 * User: ruma
 * Date: 2019/2/18
 * Time: 8:41
 */

namespace app\admin\validate;


class ChangeAdminValidate extends BaseValidate
{
    protected $rule = [
        'admin' => 'require',
        'new_admin' => 'require|different:admin',
        'confirm_admin' => 'require|confirm:new_admin'
    ];
    protected $message = [
        'admin.require' => '请输入原始用户名',
        'new_admin.require' => '请输入新用户名',
        'new_admin.different' => '原用户和新用户相同',
        'confirm_admin.require' => '再次输入新用户名',
        'confirm_admin.confirm' => '两次用户名输入不一致'
    ];
}


